import request from '@/utils/request'

// 查询橘子应援信息列表
export function listSupport(query) {
  return request({
    url: '/kiku/support/list',
    method: 'get',
    params: query
  })
}

// 查询橘子应援信息详细
export function getSupport(id) {
  return request({
    url: '/kiku/support/' + id,
    method: 'get'
  })
}

// 新增橘子应援信息
export function addSupport(data) {
  return request({
    url: '/kiku/support',
    method: 'post',
    data: data
  })
}

// 修改橘子应援信息
export function updateSupport(data) {
  return request({
    url: '/kiku/support',
    method: 'put',
    data: data
  })
}

// 删除橘子应援信息
export function delSupport(id) {
  return request({
    url: '/kiku/support/' + id,
    method: 'delete'
  })
}
